package com.example.competionmanagebackend.mapper;

import com.example.competionmanagebackend.entity.Announcements;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @author Rui
 * @description 针对表【announcements】的数据库操作Mapper
 * @createDate 2025-03-25
 */
public interface AnnouncementsMapper extends BaseMapper<Announcements> {
    // 新增公告
    int insertAnnouncement(Announcements announcement);

    // 编辑公告
    int updateAnnouncement(Announcements announcement);

    // 删除公告
    int deleteAnnouncementById(Integer id);
}